package com.sxt.demo.init;

import java.util.Random;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import com.sxt.demo.config.Person;


/**
 * 	实现在项目启动后执行的功能
 * @author Administrator
 *
 */
@Component
public class StartupRunner implements  CommandLineRunner {
	@Autowired
	Person person;
	
	@Override
	public void run(String... args) throws Exception {
		System.out.println(">>>>>>>>>>>>>>>服务启动执行，执行加载数据等操作<<<<<<<<<<<<<");
		
		System.out.println(person);
		
	}

}
